package com.gee.spring.cloud.data.transform.core.boot;

import com.gee.spring.cloud.data.transform.core.dispatch.BaseDataDispatcher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author gepengjun
 * @since 2024/3/29 11:08
 */
@Component
public class ApplicationInitBoot implements ApplicationRunner {

    @Autowired
    private BaseDataDispatcher baseDataDispatcher;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        baseDataDispatcher.init();
    }
}
